#ifndef __CONFIG_H__

#include "SWM320.h"

#define DEBUG_LEVEL    (1)



#if DEBUG_LEVEL

#define HXLOG(format, ...) printf("[LOG] " format "\r\n", ##__VA_ARGS__)

#define HXDATA(x, len)  do{\
                            uint16_t i, j;\
                            uint8_t* px = x;\
                            for(i=0, j=0; i<len; i++)\
							{\
                                printf("%02x ", px[i]);\
								if(j++ >= 15)\
								{\
									j=0;\
									printf("\r\n");\
								}\
							}\
                            printf("\r\n");\
                        }while(0);

#else

#define HXLOG(format, ...)
#define HXDATA(x, len) 
#endif

#endif

